package com.zjw

object ExistsTest extends App {
  val xxx = ",,咋的,,"
  println(xxx.split(",").forall(_.equals("")))
  val yyy = ""
  println(yyy.split(",").forall(_.equals("")))

  val set1 = Array(1,2,3,4)
  val set2 = Array("2","4","6","8")

  val intersectionSet = set1.map(_.toString).intersect(set2)
  println(intersectionSet.mkString(","))
  println(set1.slice(0,2).mkString(","))

}
